package com.itheima.controller.results;

public class Result {

    //操作结果
    private String Code;
    //操作数据
    private Object data;
    //判断
    private boolean flage;

    public Result() {
    }

    public Result(String code, Object data, boolean flage) {
        Code = code;
        this.data = data;
        this.flage = flage;
    }

    public String getCode() {
        return Code;
    }

    public void setCode(String code) {
        Code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public boolean isFlage() {
        return flage;
    }

    public void setFlage(boolean flage) {
        this.flage = flage;
    }

    @Override
    public String toString() {
        return "Result{" +
                "Code='" + Code + '\'' +
                ", data=" + data +
                ", flage=" + flage +
                '}';
    }
}
